package relationalQuery

import (
	"context"
	"gf-example/internal/service"

	"gf-example/api/relationalQuery/v1"
)

func (c *ControllerV1) HasToHas(ctx context.Context, req *v1.HasToHasReq) (res *v1.HasToHasRes, err error) {
	has, errs := service.HasToHas().FindByHasToHas(ctx)
	if errs != nil {
		return nil, errs
	}
	return has, nil
}
